package net.muchine.web.front.forms;

import javax.validation.Valid;

import net.muchine.core.domain.user.Preference;
import net.muchine.core.domain.user.User;

public class Account {
	@Valid private User user;
	@Valid private Preference preference;
	@Valid private Password password;
	
	public Account initialize() {
		this.user = new User();
		this.preference = new Preference();
		this.password = new Password();
		
		return this;
	}
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Preference getPreference() {
		return preference;
	}
	public void setPreference(Preference preference) {
		this.preference = preference;
	}
	public Password getPassword() {
		return password;
	}
	public void setPassword(Password password) {
		this.password = password;
	}
}
